Optimal. Leaf size=73 \[ -\frac{\cot ^7(c+d x)}{7 a^4 d}+\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^3(c+d x)}{3 a^4 d}+\frac{\cot (c+d x)}{a^4 d}+\frac{x}{a^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0453561, antiderivative size = 73, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {4120, 3473, 8} \[ -\frac{\cot ^7(c+d x)}{7 a^4 d}+\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^3(c+d x)}{3 a^4 d}+\frac{\cot (c+d x)}{a^4 d}+\frac{x}{a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4120
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{\left (a-a \sec ^2(c+d x)\right )^4} \, dx &=\frac{\int \cot ^8(c+d x) \, dx}{a^4}\\ &=-\frac{\cot ^7(c+d x)}{7 a^4 d}-\frac{\int \cot ^6(c+d x) \, dx}{a^4}\\ &=\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^7(c+d x)}{7 a^4 d}+\frac{\int \cot ^4(c+d x) \, dx}{a^4}\\ &=-\frac{\cot ^3(c+d x)}{3 a^4 d}+\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^7(c+d x)}{7 a^4 d}-\frac{\int \cot ^2(c+d x) \, dx}{a^4}\\ &=\frac{\cot (c+d x)}{a^4 d}-\frac{\cot ^3(c+d x)}{3 a^4 d}+\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^7(c+d x)}{7 a^4 d}+\frac{\int 1 \, dx}{a^4}\\ &=\frac{x}{a^4}+\frac{\cot (c+d x)}{a^4 d}-\frac{\cot ^3(c+d x)}{3 a^4 d}+\frac{\cot ^5(c+d x)}{5 a^4 d}-\frac{\cot ^7(c+d x)}{7 a^4 d}\\ \end{align*}
Mathematica [C] time = 0.0175616, size = 36, normalized size = 0.49 \[ -\frac{\cot ^7(c+d x) \text{Hypergeometric2F1}\left (-\frac{7}{2},1,-\frac{5}{2},-\tan ^2(c+d x)\right )}{7 a^4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 79, normalized size = 1.1 \begin{align*}{\frac{\arctan \left ( \tan \left ( dx+c \right ) \right ) }{d{a}^{4}}}-{\frac{1}{7\,d{a}^{4} \left ( \tan \left ( dx+c \right ) \right ) ^{7}}}-{\frac{1}{3\,d{a}^{4} \left ( \tan \left ( dx+c \right ) \right ) ^{3}}}+{\frac{1}{5\,d{a}^{4} \left ( \tan \left ( dx+c \right ) \right ) ^{5}}}+{\frac{1}{d{a}^{4}\tan \left ( dx+c \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.5127, size = 81, normalized size = 1.11 \begin{align*} \frac{\frac{105 \,{\left (d x + c\right )}}{a^{4}} + \frac{105 \, \tan \left (d x + c\right )^{6} - 35 \, \tan \left (d x + c\right )^{4} + 21 \, \tan \left (d x + c\right )^{2} - 15}{a^{4} \tan \left (d x + c\right )^{7}}}{105 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.494052, size = 374, normalized size = 5.12 \begin{align*} \frac{176 \, \cos \left (d x + c\right )^{7} - 406 \, \cos \left (d x + c\right )^{5} + 350 \, \cos \left (d x + c\right )^{3} + 105 \,{\left (d x \cos \left (d x + c\right )^{6} - 3 \, d x \cos \left (d x + c\right )^{4} + 3 \, d x \cos \left (d x + c\right )^{2} - d x\right )} \sin \left (d x + c\right ) - 105 \, \cos \left (d x + c\right )}{105 \,{\left (a^{4} d \cos \left (d x + c\right )^{6} - 3 \, a^{4} d \cos \left (d x + c\right )^{4} + 3 \, a^{4} d \cos \left (d x + c\right )^{2} - a^{4} d\right )} \sin \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{\int \frac{1}{\sec ^{8}{\left (c + d x \right )} - 4 \sec ^{6}{\left (c + d x \right )} + 6 \sec ^{4}{\left (c + d x \right )} - 4 \sec ^{2}{\left (c + d x \right )} + 1}\, dx}{a^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.1497, size = 188, normalized size = 2.58 \begin{align*} \frac{\frac{13440 \,{\left (d x + c\right )}}{a^{4}} + \frac{9765 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{6} - 1295 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} + 189 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 15}{a^{4} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7}} + \frac{15 \, a^{24} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} - 189 \, a^{24} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 1295 \, a^{24} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} - 9765 \, a^{24} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{a^{28}}}{13440 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]